Object-oriented programming
part 34/57 · 94.0 KB total
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
OOP was created to make code easier to reuse and maintain.cite-ref-realisticcodereuse-64-0[64] However, it was not designed to clearly show the flow of a program's instructions. That was left to the compiler. As computers began using more parallel processing and multiple threads, it became more important to understand and control how instructions flow. This is difficult to do with OOP.cite-ref-flaws-65-0[65]cite-ref-multithreadingisaverb-66-0[66]cite-ref-multicore-67-0[67]cite-ref-68[68]
Many popular programming languages, like C++, Java, and Python, use OOP. In the past, OOP was widely accepted,cite-ref-69[69] but recently, some programmers have criticized it and prefer functional programming instead.cite-ref-70[70] A study by Potok et al. found no major difference in productivity between OOP and other methods.cite-ref-71[71]
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────